package com.codefish.framework.spring.beans.factory.config;

import com.codefish.framework.spring.beans.exception.BeansException;
import com.codefish.framework.spring.beans.factory.support.IBeanDefinitionRegistry;

/**
 * 作为BeanFactory的钩子，在完成初始化所有BeanDefinition后可以修改BeanDefinition的配置
 *
 * @author <a href='https://gitee.com/hzf2281'>codefish</a>
 * @version 1.0.0
 * @since 2022/10/03 下午 01:32
 */
public interface IBeanFactoryPostProcessor {

    /**
     * BeanFactory的后置处理方法
     * @param beanFactory beanFactory
     * @throws BeansException 异常时抛出
     */
    void postProcessBeanFactory(IConfigurableListableBeanFactory beanFactory) throws BeansException;
}
